<?php

class Junction_Builder_Property {

	/**
	 * @var String the application name of the property -- what the application will use to refer to the column. 
	 */
	public $name;
	
	/**
	 * @var String the database name of the property -- the column's name.
	 */
	public $column;
	
	/**
	 * Construct a new property which associates the given name and column.
	 *
	 * @param String $name
	 * @param String $column
	 */
	public function __construct($name, $column = null) {
		$this->name = $name;
		$this->column = (isset($column)) ? $column : $this->name;
	}
}
?>